<?PHP
if (!session_start()) { session_start(); };
/*if (!isset($_SESSION['lgnapproved'])) {
	die(header('Location: login.php'));
}*/

include("functions.php");
include("cnnxn.php");
connect();

if (isset($_POST['submit'])) {

	$SQLadd='INSERT INTO av_divisions (divisionname) VALUES ("'.addslashes(str_replace("\r","<br />",(str_replace("\n"," ",$_POST['divisionname'])))).'");';
	//print $SQLadd;
	$sendit_add=mysqli_query($db,$SQLadd) or die(mysqli_error($db));
	mysqli_close($db);
die(header("Location: av_divisions_viewall.php"));
}
?>